package com.xy.tianyu.utils

import java.text.SimpleDateFormat
import java.util.*

/**
 * @time 2020/9/25 13:54
 * @class 描述:
 */
object TimeUtils {
    fun getCurrentTimeStr():String{
        val dd = Date()
        val sim = SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
        val time = sim.format(dd)
        return sim.parse(time).time.toString()
    }
}